[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 %                       Modulus Operator

 x % y                   Produces the remainder when x is divided by y

    The % operator produces the remainder of x divided by y.  Neither
    operand may be of type float.  Type conversion is performed as
    necessary, using the usual arithmetic conversions.  Example:

           z = 10 % 3           /* z = 1 */


See Also: conversions / *
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson